package com.banksoft.cps.service;

import com.banksoft.cps.bean.CompanyUser;
import com.banksoft.cps.bean.common.Page;
import com.banksoft.cps.bean.common.ServiceException;
import com.banksoft.cps.bean.query.CompanyUserQuery;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2017/12/20.
 */
public interface CompanyUserService extends UserService{

    CompanyUser login(String account, String password)throws ServiceException;

    void logout(String token);

    List<CompanyUser> list(CompanyUserQuery query);

    long count(CompanyUserQuery query);

    CompanyUser findById(String id);

    CompanyUser findByCompanyId(String companyId);

    void save(CompanyUser companyUser)throws ServiceException;

}
